<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE HTML>
<html>
<head>
<title>图书管理系统 - 后台管理</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="keywords" content="Modern Responsive web template, Bootstrap Web Templates, Flat Web Templates, Andriod Compatible web template, 
Smartphone Compatible web template, free webdesigns for Nokia, Samsung, LG, SonyErricsson, Motorola web design" />
<script type="application/x-javascript"> addEventListener("load", function() { setTimeout(hideURLbar, 0); }, false); function hideURLbar(){ window.scrollTo(0,1); } </script>
 <!-- Bootstrap Core CSS -->
<link href="/bookManage/Public/admin/css/bootstrap.min.css" rel='stylesheet' type='text/css' />
<!-- Custom CSS -->
<link href="/bookManage/Public/admin/css/style.css" rel='stylesheet' type='text/css' />
<!-- Graph CSS -->
<link href="/bookManage/Public/admin/css/lines.css" rel='stylesheet' type='text/css' />
<link href="/bookManage/Public/admin/css/font-awesome.css" rel="stylesheet"> 
<!-- jQuery -->
<script src="/bookManage/Public/admin/js/jquery.min.js"></script>

<!-- Nav CSS -->
<link href="/bookManage/Public/admin/css/custom.css" rel="stylesheet">
<!-- Metis Menu Plugin JavaScript -->
<script src="/bookManage/Public/admin/js/metisMenu.min.js"></script>
<script src="/bookManage/Public/admin/js/custom.js"></script>
<!-- Graph JavaScript -->
<script src="/bookManage/Public/admin/js/d3.v3.js"></script>
<script src="/bookManage/Public/admin/js/rickshaw.js"></script>
</head>
<body>
<div id="wrapper">
     <!-- Navigation -->
        <nav class="top1 navbar navbar-default navbar-static-top" role="navigation" style="margin-bottom: 0">
            <div class="navbar-header">
                <button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse">
                    <span class="sr-only">图书管理系统</span>
                    <span class="icon-bar"></span>
                    <span class="icon-bar"></span>
                    <span class="icon-bar"></span>
                </button>
                <a class="navbar-brand" href="index.html">图书管理系统</a>
                <span style="color: white;line-height: 50px;">后台管理</span>
            </div>
            <!-- /.navbar-header -->
            <ul class="nav navbar-nav navbar-right">
			    <li class="dropdown">
	        		<a href="#" class="dropdown-toggle avatar" data-toggle="dropdown"><img src="/bookManage/Public/admin/images/6.png"></a>
	        		<ul class="dropdown-menu">
						<li class="dropdown-menu-header text-center">
							<strong><?php echo (cookie('adminname')); ?></strong>
						</li>
						<li class="m_2"><a href="<?php echo U('admin/index/updatepwd');?>"><i class="fa fa-wrench"></i> 修改密码</a></li>
						<li class="m_2"><a href="<?php echo U('admin/index/logout');?>"><i class="fa fa-lock"></i> 安全退出</a></li>	
	        		</ul>
	      		</li>
			</ul>
            <div class="navbar-default sidebar" role="navigation">
                <div class="sidebar-nav navbar-collapse">
                    <ul class="nav" id="side-menu">
                        <li>
                            <a href="<?php echo U('admin/index/index');?>"><i class="fa fa-dashboard fa-fw nav_icon"></i>主页</a>
                        </li>
                        <li>
                            <a href="#"><i class="fa fa-sitemap fa-fw nav_icon"></i>图书管理<span class="fa arrow"></span></a>
                            <ul class="nav nav-second-level">
                                <li>
                                    <a href="<?php echo U('admin/book/addbook');?>">新书入库</a>
                                </li>
                                <li>
                                    <a href="<?php echo U('admin/book/listbook');?>">图书管理</a>
                                </li>
                                <li>
                                    <a href="<?php echo U('admin/book/borrowbook');?>">借书</a>
                                </li>
                                <li>
                                    <a href="<?php echo U('admin/book/backList');?>">还书</a>
                                </li>
                            </ul>
                            <!-- /.nav-second-level -->
                        </li>
                        <li>
                            <a href="#"><i class="fa fa-indent nav_icon"></i>分类管理<span class="fa arrow"></span></a>
                            <ul class="nav nav-second-level">
                                <li>
                                    <a href="<?php echo U('admin/book/addcate');?>">添加分类</a>
                                </li>
                                <li>
                                    <a href="<?php echo U('admin/book/listCate');?>">分类信息</a>
                                </li>
                            </ul>
                            <!-- /.nav-second-level -->
                        </li>
                        <li>
                            <a href="#"><i class="fa fa-table nav_icon"></i>用户管理<span class="fa arrow"></span></a>
                            <ul class="nav nav-second-level">
                                <li>
                                    <a href="<?php echo U('admin/user/adduser');?>">用户登记</a>
                                </li>
                                <li>
                                    <a href="<?php echo U('admin/user/listuser');?>">用户列表</a>
                                </li>
                            </ul>
                            <!-- /.nav-second-level -->
                        </li>
                        <li>
                            <a href="#"><i class="fa fa-laptop nav_icon"></i>管理员<span class="fa arrow"></span></a>
                            <ul class="nav nav-second-level">
                                <li>
                                    <a href="<?php echo U('admin/index/updatepwd');?>">修改密码</a>
                                </li>
                                <li>
                                    <a href="<?php echo U('admin/index/logout');?>">安全退出</a>
                                </li>
                            </ul>
                            <!-- /.nav-second-level -->
                        </li>
                    </ul>
                </div>
                <!-- /.sidebar-collapse -->
            </div>
            <!-- /.navbar-static-side -->
        </nav>
<script type="text/javascript">
	function chk() {
		var bname = document.getElementById('b_name');
		var pname = document.getElementById('pname');
		var day = document.getElementById('day');
		if (bname.value == '') {
			alert('书名不能为空！');
			return false;
		}
		if (pname.value == '') {
			alert('借阅人员不能为空！');
			return false;
		}
		if (day.value == '') {
			alert('天数不能为空！');
			return false;
		}
	}
</script>
        <div id="page-wrapper">
        <div class="graphs">
	     <div class="xs" >
  	       <h3>借书</h3>
  	         <div class="tab-content">
						<div class="tab-pane active" id="horizontal-form">
							<form class="form-horizontal" action="<?php echo U('admin/book/borrowbook');?>" method="post" onsubmit="return chk();">
								<div class="form-group">
									<label for="focusedinput" class="col-sm-2 control-label">书名</label>
									<div class="col-sm-8">
										<input type="text" name="b_name" id="b_name" class="form-control1"  placeholder="书名">
									</div>
								</div>
								<div class="form-group">
									<label for="focusedinput" class="col-sm-2 control-label">借阅人员</label>
									<div class="col-sm-8">
										<input type="text" name="pname" id="pname" class="form-control1"  placeholder="借阅人员">
									</div>
								</div>
								<div class="form-group">
									<label class="col-sm-2 control-label">借阅天数</label>
									<div class="col-sm-8">
										<select multiple="" name="day" id="day" class="form-control1">
											<option value="1">1天</option>
											<option value="2">2天</option>
											<option value="3">3天</option>
											<option value="4">4天</option>
											<option value="5">5天</option>
											<option value="6">6天</option>
											<option value="7">7天</option>
											<option value="8">8天</option>
											<option value="9">9天</option>
											<option value="10">10天</option>
											<option value="11">11天</option>
											<option value="12">12天</option>
											<option value="13">13天</option>
											<option value="14">14天</option>
											<option value="15">15天</option>
											<option value="16">16天</option>
											<option value="17">17天</option>
											<option value="18">18天</option>
											<option value="19">19天</option>
											<option value="20">20天</option>
											<option value="21">21天</option>
											<option value="22">22天</option>
											<option value="23">23天</option>
											<option value="24">24天</option>
											<option value="25">25天</option>
											<option value="26">26天</option>
											<option value="27">27天</option>
											<option value="28">28天</option>
											<option value="29">29天</option>
											<option value="30" selected="selected">30天</option>
										</select>
									</div>
									<div class="col-sm-2">
										<p class="help-block">最多借阅30天<br><br>默认借阅30天</p>
									</div>
								</div>

								<div class="form-group">
									<div class="col-sm-8 col-sm-offset-2">
										<input type="submit" value="借阅" class="btn-success btn">
										<input type="reset" value="重置" class="btn-inverse btn">
									</div>
								</div>
							</form>
						</div>
					</div>
				<br><br><br><br><br><br>
  </div>

    <br>
		<div class="copy">
            <p>Copyright &copy; 2017.长春师范大学 All rights reserved.</p>
	    </div>
		</div>
       </div>
      <!-- /#page-wrapper -->
   </div>
    <!-- /#wrapper -->
    <!-- Bootstrap Core JavaScript -->
    <script src="/bookManage/Public/admin/js/bootstrap.min.js"></script>
</body>
</html>